stu_class = ['Python', 'C++', 'Java', 'Lua']

# def list_while_func():
#     index = 0
#
#    while index < len(stu_class):
#        print(stu_class[index])
#        index += 1
#
# list_while_func()


def list_for_func():
    for element in stu_class:
        print(f"列表的元素有: {element}")

list_for_func()